package com.biscuit.page.basicservice.service;

import com.biscuit.page.basicservice.model.entities.mysql.SysNoteMessage;
import com.biscuit.page.basicservice.persistence.dao.NoteMessageDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author biscuit
 * @create 2024年07月22日 20:46
 */
@Slf4j
@Service
public class TestService {

    @Resource
    private NoteMessageDao noteMessageDao;

    public void execTxTest() {
        SysNoteMessage sysNoteMessage = new SysNoteMessage();
        sysNoteMessage.setIp("localhost");
        sysNoteMessage.setIp("15230008070");
        sysNoteMessage.setIsSucceed(1);
        this.noteMessageDao.save(sysNoteMessage);
        this.execTxText2();
        int i = 1 / 0;
    }

    public void execTxText2() {
        SysNoteMessage sysNoteMessage = new SysNoteMessage();
        sysNoteMessage.setIp("127.0.0.1");
        sysNoteMessage.setIp("15612003516");
        sysNoteMessage.setIsSucceed(1);
        this.noteMessageDao.save(sysNoteMessage);
    }

}
